﻿using QFramework;

namespace HKTools
{
    public class CMD_TCP_StartClient : AbstractCommand
    {
        string serverIP;
        int serverPort;

        public CMD_TCP_StartClient(string _serverIP, int _serverPort)
        {
            serverIP = _serverIP;
            serverPort = _serverPort;
        }

        protected override void OnExecute()
        {
            IHK_TcpClientSystem tcpCommunicateSystem = this.GetSystem<IHK_TcpClientSystem>();
            tcpCommunicateSystem.StartClient(serverIP, serverPort);
        }
    }
}